package com.yc.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 王妍
 * @since 2022-03-23
 */
@Getter
@Setter
@TableName("student_grade")
@ApiModel(value = "StudentGrade对象", description = "")
public class StudentGrade implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(" 主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("分数")
  @TableField("grade")
  private Integer grade;

  @ApiModelProperty("创建时间")
  @TableField("create_time")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  @TableField("update_time")
  private LocalDateTime updateTime;

  @ApiModelProperty("学生id")
  @TableField("student_id")
  private Long studentId;

  @ApiModelProperty("试卷生成及阅卷系统id")
  @TableField("exam")
  private Long exam;
}
